package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/1/23.
 */

public class ForgetPassWordReq extends BaseReq {
    private String mobile;
    private String passoword;
    private String verification;
    private String secret;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassoword() {
        return passoword;
    }

    public void setPassoword(String passoword) {
        this.passoword = passoword;
    }

    public String getVerification() {
        return verification;
    }

    public void setVerification(String verification) {
        this.verification = verification;
    }

    public String urlString() {
        return "member/forget_pwd/";
    }

    public String getSecret() {
        String string = "mobile=" + mobile + "&password=" + passoword + "&verification=" + verification;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
            Log.e("ssss", "忘记密码_source==>" + string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }


}
